#include <iostream>
#include <windows.h>

class MyClass {
public:
    static int class_var;  // 类作用域变量
};

int MyClass::class_var = 30;
int class_var = 10;

int main() {
    SetConsoleOutputCP(CP_UTF8);
    MyClass::class_var ^= class_var ;
    class_var ^= MyClass::class_var;
    MyClass::class_var ^= class_var;
    MyClass::class_var <<= 3;
    class_var <<= 4;//2E4*30
    std::cout << "类变量: " << MyClass::class_var << std::endl << "全局变量: " << class_var << std::endl;
    return 0;
}
